package com.cqjtu.drive.controller;

import com.cqjtu.drive.pojo.Grade;
import com.cqjtu.drive.response.Response;
import com.cqjtu.drive.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GradeController {
    @Autowired
    GradeService gradeService;

    @PostMapping("/api/grade/getGradeBySId")
    public Response<Grade> getGradeBySId(@RequestParam String sid){return gradeService.getGradeById(sid);}

}
